<template>
  <div class="navbar">
    <div class="left" v-if="$slots.left">
      <slot name="left"></slot>
    </div>
    <div class="center" v-if="$slots.center">
      <slot name="center"></slot>
    </div>
    <div class="right" v-if="$slots.right">
      <slot name="right"></slot>
    </div>
    <div class="title" v-if="$slots.title">
      <slot name="title"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'navbar'
}
</script>
<style lang="stylus" scoped>
@import '~@/assets/styles/mixins'
.navbar
  position relative
  width 100%
  height 50px
  display flex
  justify-content space-between
  align-items center
  .center
    flex 1
  .title
    position absolute
    top 0
    bottom 0
    left 20%
    right 20%
    flex-center()
</style>
